<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <button @click="$store.commit('addCount', 8)">commit</button>
    <button @click="$store.dispatch('addCount', 8)">dispatch</button>
    <div>state: {{$store.state.count}}</div>
    <div>doublestate: {{$store.getters.doubleCount}}</div>
    <div>testtate: {{$store.getters.testCount}}</div>
  </div>
</template>

<script>

export default {
  name: 'Home',
  components: {
  }
}
</script>
